package com.tdkj.service.enterprisezone.impl;

import java.util.LinkedHashMap;
import java.util.List;

import javax.annotation.Resource;
import javax.persistence.Column;

import org.springframework.stereotype.Component;

import com.tdkj.dao.enterprisezone.IBeanEnterpriseDao;
import com.tdkj.dao.enterprisezone.IBeanEnterpriseProductClassDao;
import com.tdkj.dao.enterprisezone.IBeanEnterpriseProductDao;
import com.tdkj.dao.enterprisezone.IBeanEnterpriseZoneDao;
import com.tdkj.dao.enterprisezone.IBeanEnterpriseZoneFriendsLinkDao;
import com.tdkj.dao.enterprisezone.IBeanEnterpriseZoneVisitorDao;
import com.tdkj.dao.exchangerate.IBeanExchangeRateDao;
import com.tdkj.dao.user.IBeanUserDao;
import com.tdkj.dao.yellowpage.impl.BeanEnterpriceDaoImpl;
import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.enterprisezone.BeanEnterprise;
import com.tdkj.model.enterprisezone.BeanEnterpriseZoneFriendsLink;
import com.tdkj.model.enterprisezone.BeanEnterpriseZoneVisitor;
import com.tdkj.model.exchangerate.BeanExchangeRate;
import com.tdkj.model.user.BeanUser;
import com.tdkj.service.BaseService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseProductClassService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseProductService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseZoneCommentService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseZoneFriendsLinkService;
import com.tdkj.service.enterprisezone.IBeanEnterpriseZoneVisitorService;
import com.tdkj.service.exchangerate.IBeanExchangeRateService;
            
@Component("enterpriseZoneVisitorService")
public class BeanEnterpriseZoneVisitorServiceImpl extends BaseService implements IBeanEnterpriseZoneVisitorService{
	
	private IBeanEnterpriseZoneVisitorDao enterpriseZoneVisitorDao ;

	@Resource
	public void setEnterpriseZoneVisitorDao(
			IBeanEnterpriseZoneVisitorDao enterpriseZoneVisitorDao) {
		this.enterpriseZoneVisitorDao = enterpriseZoneVisitorDao;
	}

	@Override
	public List<BeanEnterpriseZoneVisitor> findEnterpriseZoneVisitors(
			Long userId, Long enterZoneId) {
		return enterpriseZoneVisitorDao.getSession().createQuery(" from " + BeanEnterpriseZoneVisitor.class.getName() + " bean where bean.user="+userId+" and bean.enterpriseZone="+enterZoneId+" ").list();
	}

}
